home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / task11.zip / TASK11.DOC < prev   
Text File  |  1987-11-08  |  993b  |  20 lines

  1.           
  2.           TASK.COM
  3.           =========
  4.           
  5.           
  6.                   TASK [prompt] [$valid-responses]
  7.           
  8.                   This  little  program will display a prompt and wait
  9.           for a single key entry from the keyboard.  It then sets  the
  10.           DOS  errorlevel to the ascii value of the key and returns to
  11.           DOS.  Both [prompt] and [$valid-responses] are optional.  If
  12.           a prompt is not supplied, TASK simply waits for a key to be
  13.           pressed and returns the ASCII code.    The  valid  responses
  14.           must  begin  with  a "$".  If a string of valid responses is
  15.           not supplied, TASK will accept any key pressed  and  return
  16.           the  code.   Both the valid responses and any input from the
  17.           keyboard  is  converted  to   upper   case.      Beware   of
  18.           valid-response characters that will be interpreted by DOS as
  19.           re-direction of standard input or standard output.
  20.